package cn.Map;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class Test {

	public static void main(String[] args) {
	  Map<Integer,Student> map=new HashMap<Integer,Student>();
		 map.put(201507,new Student("zhang3",13));
		 map.put(201508,new Student("li4",14));
		 map.put(201509,new Student("wang5",15));
		// map.put(201509,new Student("wang5",15)); 
	    Set<Entry<Integer,Student>>	 set=map.entrySet();
         Iterator<Entry<Integer,Student>> iter =set.iterator();
         while(iter.hasNext()){
        	 Entry<Integer,Student> entry=iter.next();
             Student stu=entry.getValue();
             System.out.println(stu.getName());
         }
	}

}
